package model.dynamic;

import model.AbstractDepartment;

//D级单位
public class DyDDepartment extends DyDepartment
{
	 String aName;

	 String bName;

	 String cName;

	 String dName;

	public DyDDepartment(DyModel model)
	{
		this.aName = model.getaName();
		this.bName = model.getbName();
		this.cName = model.getcName();
		this.dName = model.getdName();
	}

	@Override
	public boolean hasSubDepartment() {return false;}

	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		return false;
	}

	@Override
	public String departmentName()
	{
		return aName+bName+cName+dName;
	}

	@Override
	public void calculateAdditionalData()
	{
	}

	public boolean isModelInThisDDepartment(DyModel model)
	{
		return aName.equals(model.getaName()) && bName.equals(model.getbName())
				&& cName.equals(model.getcName())&& dName.equals(model.getdName());
	}
}
